package cn.iocoder.yudao.module.erp.controller.admin.contractinfo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 合同信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ContractInfoRespVO {

    private boolean ratioFinish;
    //照付不议描述
    private String ratioDescible;

    private Long id;

    @Schema(description = "合同名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("合同名称")
    private String name;



    @Schema(description = "合同类型", requiredMode = Schema.RequiredMode.REQUIRED  )
    private String type;

    @ExcelProperty("合同类型")
    private String typeName;

    @Schema(description = "合同签订日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("合同签订日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate contractDate;

    @Schema(description = "客户", requiredMode = Schema.RequiredMode.REQUIRED, example = "20834")
    private Long customerId;

    @ExcelProperty("客户")
    private String customerName;

    @Schema(description = "合同量", requiredMode = Schema.RequiredMode.REQUIRED, example = "16082")
    @ExcelProperty("合同量")
    private BigDecimal contractCount;

    @ExcelProperty("完成系数")
    private BigDecimal ratio;

    @Schema(description = "合同价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "15340")
    @ExcelProperty("合同价格")
    private BigDecimal contractPrice;

    @Schema(description = "每日气量", example = "21885")
    @ExcelProperty("每日气量")
    private BigDecimal contractDayCount;

    @Schema(description = "已用气量", example = "19934")
    @ExcelProperty("已用气量")
    private BigDecimal usedCount;

    @Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate beginTime;

    @Schema(description = "截止时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;




    @Schema(description = "状态")
    private Integer status;

    private String statusName;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;

    private String fileUrl;

    private String remark;





}